dataNames = [...
'062117 616 fiber4';...
'062317 618 fiber1';...
'062317 618 fiber2';...
'062317 618 fiber4';...
'062517 614 fiber1';...
'062517 614 fiber2';...
'062617 588 fiber1';...
'062617 588 fiber2';...
'062617 588 fiber3';...
'062617 588 fiber4';...
'062617 588 fiber5';...
'062617 588 fiber6';...
'062717 589 fiber1';...
'062817 586 fiber1';...
'062817 586 fiber3';...
'062817 586 fiber4';...
'062817 586 fiber5';...
'062817 586 fiber6';...
'062917 591 fiber1';...
'080317 939 fiber1';...
'080317 939 fiber2';...
'080317 939 fiber3';...
'080317 939 fiber4';...
'080717 941 fiber1';...
'080717 941 fiber2';...
'080717 941 fiber3';...
'080717 941 fiber4';...
'080717 941 fiber5';...
'080717 941 fiber6';...
'080717 941 fiber7';...
'080717 941 fiber8';...
'080717 941 fiber9';...
'081017 891 fiber1';...
'081017 891 fiber2';...
'081017 891 fiber3';...
'081017 891 fiber4';...
'081417 893 fiber1';...
'081417 893 fiber2';...
'081717 945 fiber1';...
'081717 945 fiber2';...
'081717 945 fiber3';...
'081717 945 fiber4';...
'081717 945 fiber5';...
'081717 945 fiber6';...
'082117 944 fiber1';...
'082117 944 fiber2';...
'082117 944 fiber3';...
'082117 944 fiber4';...
'082117 944 fiber5';...
'082117 944 fiber6';...
'082117 944 fiber7';...
'082117 944 fiber8';...
'082417 892 fiber1';...
'082417 892 fiber3';...
'082417 892 fiber4';...
'092217 176 fiber1';...
'092217 176 fiber2';...
'092217 176 fiber3';...
'092217 176 fiber4';...
'092217 176 fiber5';...
'092717 066 fiber1';...
'092717 066 fiber2';...
'092717 066 fiber3';...
'092717 066 fiber4';...
'092817 065 fiber1';...
'092817 065 fiber2';...
'092817 065 fiber3';...
'092817 065 fiber4';...
'092817 065 fiber5';...
'092817 065 fiber6';...
'100217 170 fiber1';...
'100217 170 fiber2';...
'100217 170 fiber3';...
'100217 170 fiber4';...
'100217 170 fiber5';...
'100217 170 fiber6'];
    
output=zeros(size(dataNames,1),3);

for i=1:size(dataNames,1)
    dataName=[dataNames(i,:) ' analyzed'];
    Dynamic_spikes = xlsread([dataName '.xlsx'],'Dynamic','F8');
    Dynamic_frq=Dynamic_spikes/0.2;
    Static_spikes = (xlsread([dataName '.xlsx'],'StimPhase','F8'))-Dynamic_spikes;
    Static_frq=Static_spikes/4.8;
    Ratio=Dynamic_frq/Static_frq;
    output(i,1)=Dynamic_frq;
    output(i,2)=Static_frq;
    output(i,3)=Ratio;
end

output(isnan(output))=0;

